<?php

use Phinx\Migration\AbstractMigration;

class AddCheckListField extends AbstractMigration
{
    public function up()
    {
        $this->table("check_list")
            ->addColumn('step_workflow_id', 'integer', ['signed' => false, 'default' => 0, 'limit' => 11, 'comment' => '关联审核工序id'])
            ->save();
    }

    public function down()
    {
        $this->table("check_list")
            ->removeColumn('step_workflow_id');
    }
}
